<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" type="text/css"
	th:href="@{/webjars/bootstrap/3.4.0/css/bootstrap.min.css}" />

<title>Registration</title>
</head>
<body style="background-image: url('../../static/img/background.png');background-size: 100%, 100%;">

<nav style="background: #0056ff;height:55px;border-color:white;" class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand" style="color: #f0f0f0" href="#" th:href="@{/registration}">注册</a>
			</div>
		</div>
	</nav>
	<div class="container" style="margin-top:150px;width:50%;padding-bottom: 20px;border-radius: 20px;background:white;border: 1px solid #cbcbcb;">
		<div class="row">
			<h1 class="col-md-offset-1" style="font-size: 20px;">登录页</h1>
			<br>
			<br>
			<div class="col-md-6 col-md-offset-3">
				<form th:action="@{/login}" method="post">
					<div th:if="${param.error}">
						<div class="alert alert-danger">Invalid username or
							password.</div>
					</div>
					<div th:if="${param.logout}">
						<div class="alert alert-info">You have been logged out.</div>
					</div>
					<div class="form-group">
						<label for="username">用户名</label>: <input type="text"
							id="username" name="username" class="form-control"
							autofocus="autofocus" placeholder="Username" required/>
					</div>
					<div class="form-group">
						<label for="password">密码</label>: <input type="password"
							id="password" name="password" class="form-control"
							placeholder="Password" required/>
					</div>
					<div class="form-group">
						<div class="row">
							<div class="col-sm-6 col-sm-offset-3">
								<input type="submit" name="login-submit" id="login-submit"
									class="form-control btn btn-primary" value="Log In" />
							</div>
						</div>
					</div>
					<div class="form-group">
						<span>New user? <a href="/static" th:href="@{/registration}">Register
								here</a></span>
					</div>
				</form>
			</div>
		</div>


	</div>

	<script type="text/javascript"
		th:src="@{/webjars/jquery/3.2.1/jquery.min.js/}"></script>
	<script type="text/javascript"
		th:src="@{/webjars/bootstrap/3.4.0/js/bootstrap.min.js}"></script>

</body>
</html>